package com.platform.hjt.from.model;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.platform.hjt.sys.model.SysUserInfo;

/**
 * FromDefaultData entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "from_default_data")
public class FromDefaultData implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 7565244360170566453L;
	private String fromDefaultDataId;
	private SysUserInfo sysUserInfo;
	private String fromeSuggest;
	private Timestamp createTime;
	private String taskId;
	
	private String orderId;
	private String processId;
	
	private String taskName;

	// Constructors

	/** default constructor */
	public FromDefaultData() {
	}

	/** minimal constructor */
	public FromDefaultData(String fromDefaultDataId) {
		this.fromDefaultDataId = fromDefaultDataId;
	}

	/** full constructor */
	public FromDefaultData(String fromDefaultDataId, SysUserInfo sysUserInfo,
			String fromeSuggest, Timestamp createTime, String taskId) {
		this.fromDefaultDataId = fromDefaultDataId;
		this.sysUserInfo = sysUserInfo;
		this.fromeSuggest = fromeSuggest;
		this.createTime = createTime;
		this.taskId = taskId;
	}

	// Property accessors
	@Id
	@GenericGenerator(name="systemUUID",strategy="uuid")
	@GeneratedValue(generator="systemUUID")
	@Column(name = "from_default_data_id", unique = true, nullable = false, length = 32)
	public String getFromDefaultDataId() {
		return this.fromDefaultDataId;
	}

	public void setFromDefaultDataId(String fromDefaultDataId) {
		this.fromDefaultDataId = fromDefaultDataId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "sys_user_info_id")
	public SysUserInfo getSysUserInfo() {
		return this.sysUserInfo;
	}

	public void setSysUserInfo(SysUserInfo sysUserInfo) {
		this.sysUserInfo = sysUserInfo;
	}

	@Column(name = "frome_suggest", length = 2000)
	public String getFromeSuggest() {
		return this.fromeSuggest;
	}

	public void setFromeSuggest(String fromeSuggest) {
		this.fromeSuggest = fromeSuggest;
	}

	@Column(name = "create_time", length = 19)
	public Timestamp getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	@Column(name = "task_id", length = 32)
	public String getTaskId() {
		return this.taskId;
	}

	public void setTaskId(String taskId) {
		this.taskId = taskId;
	}

	@Column(name = "order_id", length = 32)
	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	@Column(name = "process_id", length = 32)
	public String getProcessId() {
		return processId;
	}

	public void setProcessId(String processId) {
		this.processId = processId;
	}

	@Column(name = "task_name", length = 32)
	public String getTaskName() {
		return taskName;
	}

	public void setTaskName(String taskName) {
		this.taskName = taskName;
	}

}